import request from '@/utils/request'

// 商品单位列表
export function unitQueryList(data) {
  return request({
    url: 'goodsUnit/queryList',
    method: 'post',
    data: data
  })
}

// 商品单位详情
export function unitQueryId(data) {
  return request({
    url: 'goodsUnit/queryId',
    method: 'post',
    data: data
  })
}

// 添加
export function unitAdd(data) {
  return request({
    url: 'goodsUnit/add',
    method: 'post',
    data: data
  })
}

// 更新
export function unitUpdate(data) {
  return request({
    url: 'goodsUnit/update',
    method: 'post',
    data: data
  })
}

// 删除
export function unitDelete(data) {
  return request({
    url: 'goodsUnit/delete',
    method: 'post',
    data: data
  })
}
